package com.admin.util;

import java.util.Random;

/**
 * @datetime: 2019/7/1 0001 15:29
 * @autohr: aiyls
 * @Description:
 *  生成随机订单号  时间戳 + 随机数
 **/
public class OrderIdUtil {
    public static synchronized String genOrderId(){
        Random random = new Random();
        Integer number = random.nextInt(900000) + 100000;
        return System.currentTimeMillis() + String.valueOf(number);
    }

}
